<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/4/9
 * Time: 13:55
 */
namespace app\admin\controller;
use think\Db;

class Index extends AdminController
{
    public function index()
    {
        $adminInfo = $_SESSION['admin'];
        $this->assign('adminInfo', $adminInfo);
        return $this->fetch('index/index');
    }

    // 测试ajax
    public function getData()
    {
        $res = array('name' => 'xiaom', 'age' => 10);
        return $res;
    }
}
